package com.junjun.ssm;

import com.junjun.ssm.dao.INewsDao;
import com.junjun.ssm.entity.NewsEs;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class EsText {

@Autowired
    INewsDao newsDao;

    @Test
    public  void text1(){
        //06dee492b5ce1000
        //06def4c9bcce1000
        //06def4cba60e1000
        //06def56c53ce1000
    List<NewsEs> list= newsDao.findAll();
        for (NewsEs newsEs : list) {
            System.out.println(newsEs+""+newsEs.getId()+"aaaaaaaaaaaaaaaaaaaaaaa\n");
        }

    }
}
